Web proxy script.
[November 2004]
Description: A script which proxies we request through a webserver,
allowing access to content or domains which the remote webserver can view.
Notes: The script takes a URL and parses hyperlinks, image links, css references, frame sources, javascript references. It converts image, css, and javascript references from relative links to absolute links to the remote url, and converts hyperlinks and frame sources to link through the proxy script.
Any form actions are converted to "get" requests. The original 'Action="blah"' is added to the form as a hidden field, and an extra hidden field is also added to let the script know that the request has to be reposted.
This request is then posted to the original action URL, using the forms fields. The response is parse by the script as before.